﻿
//编译器类--把源程序编译为汇编程序
namespace n_CORTEX_M0_Assembler
{
using System;
using System.Text;
using n_ET;
using n_ConstString;
using i_Compiler;
using n_OS;

public static class CORTEX_M0_Assembler
{
	//编译器启动初始化,加载汇编运算库文件
	public static void LoadFile()
	{
		//加载运算信息表
		string s = Compiler.OpenCompileFile( n_Config.Config.Path_compiler + "CPU" + OS.PATH_S + "CORTEX M0" + OS.PATH_S + "hexcode.lst" );
		s = s.Remove( s.IndexOf( "\n<end>" ) );
		string[] Lines = s.Split( '\n' );
		HEXList = new string[ Lines.Length ][];
		for( int i = 0; i < Lines.Length; ++i ) {
			HEXList[ i ] = Lines[ i ].Remove( Lines[ i ].IndexOf( "<<<<" ) ).Split( '\\' );
		}
	}
	
	//编译汇编文件
	public static string Assemble( string Source )
	{
		return "哈哈哈";
	}
	
	static string[][] HEXList;
}
}

